package cn.juforg.gobang.test;

public class CalculateFactor {

	static int[] weight = new int[9];
	public static void main(String[] args) {
		int a1=0;
		int a2=0;
		int b1=0;
		int b2=0;
    int c1=0;
    int c2=0;
    int d1=0;
    int d2=0;
    int e1=0;
    int e2=0;
    
		boolean flag=true;
			 for ( a1= 1; a1< 100; a1++) {
			   for ( a2= 1; a2< 100; a2++) {
              if(4*a1>=a2|| 2*a1>=a2){continue;}
					for ( b1= 1; b1< 100; b1++) {
                 if(4*a2>=b1 || 2*a2>=b1){continue;}
            for ( b2= 1; b2< 100; b2++) {
                if(4*b1>=b2|| 2*b1>=b2){continue;}
              for ( c1= 1; c1< 100; c1++) {
                  if(4*b2>=c1|| 2*b2>=c1){continue;}
                for ( c2= 1; c2< 100; c2++) {
                    if(4*c1>=c2){continue;}
                  for ( d1= 1; d1< 100; d1++) {
                  if(4*c2>=d1|| 2*c2>=d1){continue;}
                    for ( d2= 1; d2< 100; d2++) {
                        if(4*d1>=d2|| 2*d1>=d2){continue;}
                     for ( e1= 1; e1< 100; e1++) {
                     if(4*d2>=e1|| 2*d2>=e1){continue;}
                      for ( e2= 1; e2< 100; e2++) {
                          if(4*e1>=e2|| 2*e1>=e2){continue;}
                  
                              
                                  if (false) {
                                     flag=false;
                                  }else{
                                  System.out.println("--------------------------------------------------------------------------------");
                                  System.out.println("a1:"+a1);
                                  System.out.println("a2:"+a2);
                                  System.out.println("b1:"+b1);
                                  System.out.println("b2:"+b2);
                                  System.out.println("c1:"+c1);
                                  System.out.println("c2:"+c2);
                                  System.out.println("d1:"+d1);
                                  System.out.println("d2:"+d2);
                                  System.out.println("e1:"+e1);
                                  System.out.println("e2:"+e2);

                                  
                                  System.out.println();
                                  }
                             
				 }
                    }}}}}}}}}
			}
		
	}
	
	static public boolean cal1(){
		for (int i = 1; i <= 4; i++) {
			for (int j = 1; j < 5; j++) {
				for (int k = 1; k < 5; k++) {
					if (!(weight[i]*j<weight[i+1]*k)) {
						System.out.println("i:"+i+" j:"+j+" k:"+k);
						System.out.println("weight["+i+"]="+weight[i]);
						System.out.println("weight["+(i+1)+"]="+weight[i+1]);
						return false;
					}
			}
			}
		}
		return true;
	}

}
